﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LINQPad.Extensibility.DataContext;
using LINQPad.OpenAccess.Settings;

namespace LINQPad.OpenAccess.Services
{
    /// <summary>
    /// ConnectionDescription provider for the data context.
    /// </summary>
    public interface IDataContextConnectionDescriptionProvider
    {
        /// <summary>
        /// Gets the description.
        /// </summary>
        /// <param name="connectionInfo">The connection info.</param>
        /// <param name="driverSettings">The driver settings.</param>
        /// <returns>
        /// The description
        /// </returns>
        string GetDescription( IConnectionInfo connectionInfo, DriverSettings driverSettings = null );
    }
}
